use crate::data_item;
use crate::global_var;
use crate::service;

use global_var::GLOBAL_POOL;
use service::DataItemService;

pub fn create_data_item_service() -> DataItemService {
    let data_item_service = DataItemService::new(GLOBAL_POOL.clone());
    data_item_service.init_table();
    data_item_service
}
